/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import com.google.common.base.Strings;
/*     */ import net.minecraft.nbt.NBTBase;
/*     */ import net.minecraft.nbt.NBTTagByte;
/*     */ import net.minecraft.nbt.NBTTagByteArray;
/*     */ import net.minecraft.nbt.NBTTagCompound;
/*     */ import net.minecraft.nbt.NBTTagDouble;
/*     */ import net.minecraft.nbt.NBTTagEnd;
/*     */ import net.minecraft.nbt.NBTTagFloat;
/*     */ import net.minecraft.nbt.NBTTagInt;
/*     */ import net.minecraft.nbt.NBTTagIntArray;
/*     */ import net.minecraft.nbt.NBTTagList;
/*     */ import net.minecraft.nbt.NBTTagLong;
/*     */ import net.minecraft.nbt.NBTTagShort;
/*     */ import net.minecraft.nbt.NBTTagString;
/*     */ 
/*     */ 
/*     */ 
/*     */ public class ts
/*     */ {
/*     */   public static final char g = '§';
/*     */   
/*     */   public static String z(oy a) {
/*  25 */     String str1 = a.v();
/*  26 */     NBTBase nBTBase = a.v();
/*     */     
/*  28 */     String str2 = v(nBTBase);
/*  29 */     return Strings.isNullOrEmpty(str1) ? ("" + str2) : (str1 + ": " + str2);
/*     */   }
/*     */   
/*     */   public static String v(oy a) {
/*  33 */     String str1 = a.v();
/*  34 */     NBTBase nBTBase = a.v();
/*     */     
/*  36 */     String str2 = v(nBTBase);
/*  37 */     return Strings.isNullOrEmpty(str1) ? ("" + str2) : (str1 + ": " + str2 + '§' + 'r');
/*     */   }
/*     */   
/*     */   public static NBTBase v(byte a) {
/*  41 */     switch (a) {
/*     */       case 0:
/*  43 */         return (NBTBase)new NBTTagEnd();
/*     */       case 1:
/*  45 */         return (NBTBase)new NBTTagByte((byte)0);
/*     */       case 2:
/*  47 */         return (NBTBase)new NBTTagShort();
/*     */       case 3:
/*  49 */         return (NBTBase)new NBTTagInt(0);
/*     */       case 4:
/*  51 */         return (NBTBase)new NBTTagLong(0L);
/*     */       case 5:
/*  53 */         return (NBTBase)new NBTTagFloat(0.0F);
/*     */       case 6:
/*  55 */         return (NBTBase)new NBTTagDouble(0.0D);
/*     */       case 7:
/*  57 */         return (NBTBase)new NBTTagByteArray(new byte[0]);
/*     */       case 8:
/*  59 */         return (NBTBase)new NBTTagString("");
/*     */       case 9:
/*  61 */         return (NBTBase)new NBTTagList();
/*     */       case 10:
/*  63 */         return (NBTBase)new NBTTagCompound();
/*     */       case 11:
/*  65 */         return (NBTBase)new NBTTagIntArray(new int[0]);
/*     */     } 
/*  67 */     return null;
/*     */   }
/*     */ 
/*     */   
/*     */   public static String v(NBTBase a) {
/*  72 */     switch (a.func_74732_a()) {
/*     */       case 1:
/*  74 */         return "" + ((NBTTagByte)a).func_150290_f();
/*     */       case 2:
/*  76 */         return "" + ((NBTTagShort)a).func_150289_e();
/*     */       case 3:
/*  78 */         return "" + ((NBTTagInt)a).func_150287_d();
/*     */       case 4:
/*  80 */         return "" + ((NBTTagLong)a).func_150291_c();
/*     */       case 5:
/*  82 */         return "" + ((NBTTagFloat)a).func_150288_h();
/*     */       case 6:
/*  84 */         return "" + ((NBTTagDouble)a).func_150286_g();
/*     */       case 7:
/*  86 */         return a.toString();
/*     */       case 8:
/*  88 */         return ((NBTTagString)a).func_150285_a_();
/*     */       case 9:
/*  90 */         return "(TagList)";
/*     */       case 10:
/*  92 */         return "(TagCompound)";
/*     */       case 11:
/*  94 */         return a.toString();
/*     */     } 
/*  96 */     return "?";
/*     */   }
/*     */ 
/*     */   
/*     */   public static String v(byte a) {
/* 101 */     switch (a) {
/*     */       case 1:
/* 103 */         return "Byte";
/*     */       case 2:
/* 105 */         return "Short";
/*     */       case 3:
/* 107 */         return "Int";
/*     */       case 4:
/* 109 */         return "Long";
/*     */       case 5:
/* 111 */         return "Float";
/*     */       case 6:
/* 113 */         return "Double";
/*     */       case 7:
/* 115 */         return "Byte[]";
/*     */       case 8:
/* 117 */         return "String";
/*     */       case 9:
/* 119 */         return "List";
/*     */       case 10:
/* 121 */         return "Compound";
/*     */       case 11:
/* 123 */         return "Int[]";
/*     */       case 12:
/* 125 */         return "编辑";
/*     */       case 13:
/* 127 */         return "删除";
/*     */       case 14:
/* 129 */         return "复制";
/*     */       case 15:
/* 131 */         return "剪切";
/*     */       case 16:
/* 133 */         return "粘贴";
/*     */     } 
/* 135 */     return "Unknown";
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\ts.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */